package com.ryder.oss.adapter;

import com.ryder.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;

/**
 * 描述: 阿里云对象存储服务实现类
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0 // 版本号，指明从哪个版本开始
 * 更新日期: 2025/02/07
 */

public class AliStorageAdapter implements StorageAdapter {
    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public void uploadFile(MultipartFile uploadFile, String bucket, String fileName) {

    }

    @Override
    public List<String> getALlBucket() {
        List<String> bucketNameList = new LinkedList<>();
        bucketNameList.add("阿里云");
        return bucketNameList;
    }

    @Override
    public List<FileInfo> getALlFile(String bucket) {
        return List.of();
    }

    @Override
    public InputStream downLoad(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucket) {

    }

    @Override
    public void deleteObject(String bucket, String objectName) {

    }

    @Override
    public String getUrl(String bucketName, String objectName) {
        return null;
    }
}
